package org.zoomdev.zoom.dao.entity;

import org.zoomdev.zoom.dao.EntityField;

import java.util.Map;

public class RecordEntityField extends EntityField {

    public RecordEntityField() {

    }


    @Override
    public Object get(Object target) {
        return ((Map<String, Object>) target).get(getFieldName());
    }

    @Override
    public void set(Object target, Object value) {

        ((Map<String, Object>) target).put(getFieldName(), value);
    }
}
